<template>
	<view class="mine">
		<view class="">
			<u-cell-group>
				<u-cell-item title="用户名" :value="vuex_user.username || '无'" :arrow="false">
				</u-cell-item>
				<u-cell-item title="姓名" :value="vuex_user.name || '无'" :arrow="false">
				</u-cell-item>
				<u-cell-item title="单位" :value="vuex_user.company || '无'" :arrow="false">
				</u-cell-item>
				<u-cell-item title="学历" :value="vuex_user.education || '无'" :arrow="false"></u-cell-item>
				<u-cell-item title="邮箱" :value="vuex_user.email	 || '无'" :arrow="false"></u-cell-item>
				<u-cell-item title="专业" :value="vuex_user.major	 || '无'" :arrow="false"></u-cell-item>
				<u-cell-item title="手机号" :value="vuex_user.phone	 || '无'" :arrow="false"></u-cell-item>
				<u-cell-item title="特长" :value="vuex_user.specialty	 || '无'" :arrow="false"></u-cell-item>
				<u-cell-item title="工作年限" :value="vuex_user.work_year	 || '无'" :arrow="false"></u-cell-item>
				<u-cell-item title="职称" :value="vuex_user.professional	 || '无'" :arrow="false"></u-cell-item>
				<u-cell-item title="身份证号" :value="vuex_user.id_number || '无'" :arrow="false">
				</u-cell-item>
			</u-cell-group>
		</view>
		<view class="login-out">
			<u-button size="default" shape="circle" :ripple="true" type="primary" @click="loginOut()">退出登录
			</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			console.log(this.vuex_user);
		},
		methods: {
			// 退出登录
			loginOut() {
				this.$u.vuex('vuex_token', "");
				this.$u.vuex('vuex_user', {});
				uni.redirectTo({
					url: '/pages/login-reg/login'
				})
			},
		}
	}
</script>

<style scope lang="scss">
	.mine {
		.login-out {
			margin: 120rpx 40rpx;
		}
	}
</style>
